//
// Unihan Input Method
//
// Copyright © 2002-2007 Sun Wah Linux Ltd.
//
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//
// $Id: list_factory.h 757 2007-05-10 08:19:31Z roger $
//

#ifndef _PUNC_H
#define _PUNC_H

#define SYM_MAX_LEN 6

typedef struct _IMInfo {
	gchar *id;
	gchar *cname;
} IMInfo;

typedef struct _SymDefGroup {
	gint modifier;
	gint key;
	gchar *symbol;
} SymDefGroup;

typedef struct _WordDefGroup {
	gchar *key;
	gchar *word;
} WordDefGroup;

void IM_free_list(GList *list);
GList *IM_get_curr_list(void);
GList *IM_get_all_list(void);
GList *IM_retrieve_list(const gchar *string);
void IM_shift_up(GList *trunk, GList *node);
void IM_shift_down(GList *trunk, GList *node);
GtkListStore *list_store_new_from_im_list(GList *list);

void Symbol_free_list(GList *list);
GList *Symbol_get_list(void);

void Word_free_list(GList *list);
GList *Word_get_list(void);

#endif /* _PUNC_H */

// vi:ts=4:nowrap:cin:expandtab
